<?php
namespace {dbName}\Model;
class {tblName} extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var integer
     */
    public $id;

[loop start]
    /**
     *
     * @var [fldType]
     * [fldTitle]
     */
	public $[fldName];
[loop end] 

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        $this->setSchema("[dbName]");
        $this->setSource("[tblName]");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return '[tblName]';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return Room[]|Room|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return Room|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
